<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>ES Modules 导出</title>
</head>
<body>
  
  <script type="module">
    import { tempObj, methods } from "./2.index.js"
    console.log(tempObj, "tempObj")
    methods()
  </script>
</body>
</html>